﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using HR.ProjectX.Models.Entities.Bookings;

namespace HR.ProjectX.DAL.Mapping
{
    public class BookingMap : ClassMap<Booking>
    {
        public BookingMap()
        {
            Id(x => x.Id).Column("BookingId");
            References(x => x.BookingStatus, "BookingStatusId");
            References(x => x.Customer, "CustomerId");
            References(x => x.Vehicle, "VehicleId");
            Map(x => x.DateFrom);
            Map(x => x.DateTo);
        }
    }
}
